/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'
export const viewsRouter = [{
  path: '/sales',
  component: Layout,
  redirect: 'noRedirect',
  children: [{
    path: 'index',
    component: () => import('@/views/sales/index'),
    name: 'sales',
    meta: {
      title: 'sales',
      noCache: true,
      icon: 'sales'
    }
  }]
}, {
  path: '/leaderBoard',
  component: Layout,
  redirect: 'noRedirect',
  name: 'leaderBoard',
  meta: {
    title: 'leaderBoard',
    icon: 'leaderBoard'
  },
  children: [{
    path: 'day',
    component: () => import('@/views/leaderBoard/dayLeaderBoard'),
    name: 'dayLeaderBoard',
    meta: {
      title: 'dayLeaderBoard',
      noCache: true
    }
  }, {
    path: 'filter',
    component: () => import('@/views/leaderBoard/index'),
    name: 'filterLeaderBoard',
    meta: {
      title: 'filterLeaderBoard',
      noCache: true
    }
  }]
}, {
  path: '/brands',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Brands',
  meta: {
    title: 'brands',
    icon: 'analysis'
  },
  children: [{
    path: 'visual',
    component: () => import('@/views/brands/visual'),
    name: 'brandsBase',
    meta: {
      title: 'brandsBase',
      noCache: true
    }
  }, {
    path: 'shops',
    component: () => import('@/views/brands/shops'),
    name: 'brandsShops',
    meta: {
      title: 'brandsShops',
      noCache: true
    }
  }]
},
{
  path: '/dy',
  component: Layout,
  redirect: 'noRedirect',
  children: [{
    path: 'index',
    component: () => import('@/views/Douyin'),
    name: 'douyin',
    meta: {
      title: 'douyin',
      noCache: true,
      icon: 'douyin'
    }
  }]
},
{
  path: '/tp',
  component: Layout,
  redirect: 'noRedirect',
  hidden: true,
  children: [{
    path: 'i',
    component: () => import('@/views/Douyin/BackIndex'),
    name: '投屏后台',
    meta: {
      title: '投屏后台',
      noCache: true,
      icon: 'douyin'
    }
  }]
}

  /* {
    path: '/account',
    component: Layout,
    redirect: 'noRedirect',
    name: 'Account',
    meta: {
      title: 'accountManager',
      icon: 'analysis'
    },
    children: [
      {
        path: 'unifiedManagement',
        component: () => import('@/views/account/index'),
        name: 'unifiedManagement',
        meta: { title: 'unifiedManagement', noCache: true }
      }, {
        path: 'accountPurchase',
        component: () => import('@/views/account/unified'),
        name: 'AccountPurchase',
        meta: { title: 'AccountPurchase', noCache: true }
      }
    ]
  }*/
]
